/*
*   @Author: 1296
*   @Date: 2025-03-16
*   @Description: 导出文件
*/

<template>
  <div class="download-container">
    <button class="download-button" @click="downloadFile">{{ $t('DownloadFiles') }}</button>
  </div>
</template>

<script>
export default {
  methods: {
    downloadFile() {
      window.open('excel/export', '_blank');
    }
  }
};
</script>

<style scoped>
.download-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.download-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-button:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

@media (max-width: 480px) {
  .download-button {
    width: 90%;
    padding: 14px;
    font-size: 15px;
  }
}
</style>